﻿using DeZhen.DataCollection.Model.Entities;

namespace DeZhen.DataCollection.IRepository.CollectionInstance
{
    public interface ICollectionInstanceDetailRepository : IBaseRepository<CollectionInstanceDetail>
    {
        Task<List<CollectionInstanceDetail>> GetDetailByInstanceIdAsync(long collectionInstanceId);

        Task<List<CollectionInstanceDetail>> GetDetailByLatestInstanceIdAsync(long collectionInstanceId, long templateId, long templateDetailId);

        Task<bool> CreateManyAsync(List<CollectionInstanceDetail> createList);
    }
}
